#-*- coding:utf-8 -*-

from scrapy.item import Item, Field

class FangyuanItem(Item):
    title = Field()
    price = Field()
    size = Field()  # 面积
    huxing = Field()
    rent_type = Field() # 租赁方式
    # todo 房源与小区与出租者如何关联
    # lessor_id = Field() # 出租者
    # community_id = Field() # 小区ID
    zhuangxiu_chengdu = Field() # 装修程度
    chaoxiang = Field() # 朝向
    ruzhu_time = Field() # 入住时间
    publish_time = Field() # 发布时间
    status = Field() # 状态
    floor = Field() # 楼层
    pictures = Field()


class Lessor(Item):
    '''出租人'''
    name = Field()
    sex = Field()
    tel = Field() # 电话
    phone = Field() # 手机

# todo 小区信息不全
class Community(Item):
    '''小区'''
    name = Field()
    description = Field()


class DemoItem(Item):
    city = Field()
    id_code = Field()
    tel_code = Field()

